package  com.zerosky.crm.service;

import java.util.List;
import java.util.Map;

import com.zerosky.crm.po.Trip;
import com.zerosky.crm.po.VisitRecord;
import com.zerosky.crm.util.PageInfo;

/**Trip业务逻辑接口 
 * @author 钟璟;
 * @since 2017-07-13
 */
public interface TripService {

	/**Trip列表接口
	 * @author 钟璟;
	 * @since 2017-07-13
	 */
	public PageInfo<Trip> getTripList(Map map,PageInfo<Trip> page);

	/**通过主键查找Trip实体接口
	 * @param id Trip主键
	 * @author 钟璟;
	 * @since 2017-07-13
	 */
	public Trip getTripById(String id);

	/**保存Trip接口 
	 * @param trip 实体对象, operation 操作类型
	 * @author 钟璟;
	 * @since 2017-07-13
	 */
	public void saveTrip(Trip trip, String operation) throws Exception;
 	 
	/** 删除Trip接口
	 * @param idArray Trip主键数组
	 * @author 钟璟;
	 * @since 2017-07-13
	 */
	public void deleteTripById(String id) throws Exception;

	public PageInfo<Trip> getTodayTripList(Map<String, Object> param, PageInfo<Trip> pageInfo);
}
